"""
import random
num = random.randint(1, 10)

guess_num = int(input("请输入你的猜的数字："))

if guess_num == num:
    print("恭喜你，猜对了")
else:
    if guess_num > num:
        print("你猜测的数字太大了")
    else:
        print("你猜测的数字太小了")

    guess_num = int(input("请再猜一次数字："))

    if guess_num == num:
        print("恭喜你，第二次猜对了")
    else:
        if guess_num > num:
            print("你猜测的数字太大了")
        else:
            print("你猜测的数字太小了")

        guess_num = int(input("请再猜第三次吧:"))
        if guess_num == num:
            print("恭喜你，第三次猜对了")
        else:
            print("sorry,你三次机会已用完")
"""


"""

import random

def guess_number():
    number = random.randint(1, 100)
    attempts = 0

    while True:
        guess = int(input("猜一个1到100之间的数字："))
        attempts += 1

        if guess < number:
            print("太小了，再试一次！")
        elif guess > number:
            print("太大了，再试一次！")
        else:
            print(f"恭喜你，猜对了！你用了{attempts}次尝试。")
            break

guess_number()
"""


"""
# 发工资的案例
all = 10000
for x in range(1, 21):

    import random
    salary = random.randint(1,10)

    if salary < 5:
        print(f"员工{x}，平均分低于5，抱歉，你不符合发工资")
        continue

    if all >= 1000:
        all -= 1000
        print(f"员工{x}，恭喜你，平均分大于5，发放工资1000，余额还剩{all}")
    else:
        print("非常抱歉，工资发完了")
        break
"""






